<!--
<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>红梅食品</title>
  <style>
    /* 全局样式 */
    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background-color: #f9f9f9;
      line-height: 1.6;
    }

    /* 顶部导航 */
    header {
      background-color: #d00000;
      color: white;
      padding: 1rem 0;
      text-align: center;
    }

    header img {
      max-height: 50px;
    }

    /* 主内容区域 */
    .container {
      margin: 1rem auto;
      padding: 1rem;
      max-width: 640px;
      background-color: white;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
    }

    .container h2 {
      margin-top: 0;
      color: #d00000;
      font-size: 1.5rem;
      border-bottom: 2px solid #d00000;
      padding-bottom: 0.5rem;
    }

    .about p {
      margin: 0.5rem 0;
      text-align: justify;
    }

    /* 数字展示区域 */
    .highlights {
      display: flex;
      justify-content: space-around;
      background-color: #f4f4f4;
      padding: 1rem 0;
      margin: 2rem auto;
      border-radius: 8px;
      font-size: 1.2rem;
      font-weight: bold;
    }

    .highlights div {
      text-align: center;
      color: #d00000;
    }

    /* 产品图片 */
    .poster img {
      display: block;
      width: 100%;
      border-radius: 8px;
    }

    /* 页脚 */
    footer {
      background-color: #d00000;
      color: white;
      text-align: center;
      padding: 1rem 0;
      margin-top: 2rem;
    }
  </style>
</head>
<body>
&lt;!&ndash; 顶部 &ndash;&gt;
<header>
  <img src="/src/img/logo.png" alt="红梅食品 Logo">
</header>


&lt;!&ndash; 页脚 &ndash;&gt;
<footer>
  <p>红梅食品 创造生活高品质</p>
  <p>HONGMEI FOOD CREATES HIGH QUALITY OF LIFE</p>
</footer>
</body>
</html>
-->
<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>红梅食品</title>
  <style>
    /* 全局样式 */
    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background-color: #f9f9f9;
      line-height: 1.6;
    }

    /* 顶部导航 */
    header {
      background-color: #d00000;
      color: white;
      padding: 1rem 0;
      text-align: center;
    }

    header img {
      max-height: 50px;
    }

    /* 主内容区域 */
    .container {
      margin: 1rem auto;
      padding: 1rem;
      max-width: 640px;
      background-color: white;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
    }

    .container h2 {
      margin-top: 0;
      color: #d00000;
      font-size: 1.5rem;
      border-bottom: 2px solid #d00000;
      padding-bottom: 0.5rem;
    }

    /* 互动容器样式 */
    .interactive-area {
      margin: 2rem 0;
      padding: 1rem;
      background: #f4f4f4;
      border-radius: 8px;
      text-align: center;
    }

    .interactive-area button {
      padding: 0.5rem 1rem;
      margin: 0.5rem;
      border: none;
      border-radius: 4px;
      background-color: #d00000;
      color: white;
      cursor: pointer;
      font-size: 1rem;
    }

    .interactive-area button:hover {
      background-color: #a00000;
    }

    .output {
      margin-top: 1rem;
      padding: 1rem;
      background: #e0ffe0;
      border-radius: 8px;
      text-align: center;
      font-size: 1.2rem;
      font-weight: bold;
    }

    .crystal {
      display: inline-block;
      margin: 1rem auto;
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #d00000, #ffffff);
      border-radius: 50%;
      transform: scale(1);
      animation: grow 2s infinite alternate;
    }
    /* 页脚 */
    footer {
      background-color: #d00000;
      color: white;
      text-align: center;
      padding: 1rem 0;
      margin-top: 2rem;
    }

    /* 顶部导航 */
    header {
      background-color: #d00000;
      color: white;
      display: flex;
      align-items: center;
      width: auto;
      justify-content: space-between;
      padding: 0.5rem 1rem;
      position: relative;
    }

    header img {
      max-height: 50px;
    }

    /* 菜单按钮 */
    .menu-toggle {
      display: none;
      font-size: 1.5rem;
      background: none;
      border: none;
      color: white;
      cursor: pointer;
    }

    /* 导航菜单 */
    nav {
      display: flex;
      gap: 1rem;
    }

    nav a {
      color: white;
      text-decoration: none;
      font-size: 1rem;
    }

    nav a:hover {
      text-decoration: underline;
    }

    /* 移动端样式 */
    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      nav {
        display: none;
        flex-direction: column;
        background-color: #d00000;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 1rem 0;
      }

      nav a {
        padding: 0.5rem 1rem;
      }

      nav.active {
        display: flex !important;
      }
    }

    @keyframes grow {
      from {
        transform: scale(1);
      }
      to {
        transform: scale(1.2);
      }
    }
  </style>
</head>
<body>
<!-- 顶部 -->
<header>
  <!-- Logo -->
  <img src="/src/img/logo.png" alt="红梅食品 Logo" style="max-height: 35px;">

  <!-- 菜单按钮（移动端可见） -->
  <button class="menu-toggle" onclick="toggleMenu()">☰</button>

  <!-- 导航菜单 -->
  <nav id="mobile-nav">
    <a href="one.html">首页</a>
    <a href="two.html">红梅简介</a>
    <a href="three.html">原料介绍</a>
    <a href="four.html">制作过程</a>
    <a href="five.html">开始投放市场</a>
  </nav>
</header>

<!-- 互动区域 -->
<div class="container">
  <div class="interactive-area">
    <!--<h2>互动操作</h2>-->
    <p>将各种原料加入容器，发酵，然后看看结果！</p>
    <button onclick="addIngredient()">加入原料</button>
    <button onclick="ferment()">发酵</button>
    <button onclick="crystallize()">结晶</button>
    <div class="output" id="output">等待操作...</div>
  </div>
</div>

<!-- 页脚 -->
<footer>
  <p>红梅食品 创造生活高品质</p>
  <p>HONGMEI FOOD CREATES HIGH QUALITY OF LIFE</p>
</footer>

<script>
  let step = 0;

  function addIngredient() {
    const output = document.getElementById('output');
    output.textContent = '原料已加入容器中！';
    //添加gif图片并展示
    output.innerHTML += '<div><img src="/src/img/原料.gif" alt="加入原料" style="width: 150px; height: 120px;"></div>';
    step = 1;
  }

  function ferment() {
    const output = document.getElementById('output');
    if (step === 1) {
      output.textContent = '发酵中，请稍候...';
      output.innerHTML += '<div><img src="/src/img/制作中.gif" alt="开始制作" style="width: 150px; height: 120px;"></div>';
      step = 2;
    } else {
      output.textContent = '请先加入原料！';
    }
  }

  function crystallize() {
    const output = document.getElementById('output');
    if (step === 2) {
      output.innerHTML = '发酵完成，结晶出现了！';
      output.innerHTML += '<div><img src="/src/img/结晶.gif" alt="出现结晶" style="width: 150px; height: 120px;"></div>';
      step = 3;
    } else {
      output.textContent = '请先完成发酵过程！';
    }
  }

  function toggleMenu() {
    const nav = document.getElementById('mobile-nav');
    nav.classList.toggle('active');
  }
</script>
</body>
</html>
